package com.example.tests;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import org.testng.annotations.Test;
import com.example.fw.ContactObject;
import com.example.fw.Contacts;

public class ContactDeletionTests extends TestBase{

	@Test
	public void testFirstContactCanBeDeleted() throws Exception {
		Contacts oldList = app.getContactHelper().getContacts();		
		ContactObject someContact = oldList.getSomeContact();
		app.getContactHelper().deleteContact(someContact);
		Contacts newList = app.getContactHelper().getContacts();
//		verifyContactDeleted(oldList, newList);
		assertThat(newList, equalTo(oldList.withoutRemoved(someContact)));
		;
	}	}
